package com.yc.qunxing.clients;

import com.yc.qunxing.clients.impl.UserActionImpl;
import com.yc.qunxing.entity.Users;
import com.yc.qunxing.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "qunxing-user", fallback = UserActionImpl.class)
@Component
public interface UserAction {
    @GetMapping("/users/getById")
    Result<Users> GetById(@RequestParam("userId") Integer userId);

}
